#ifndef FACEOBJECT_H
#define FACEOBJECT_H

#include <QObject>
#include <opencv2/opencv.hpp>
#include <seeta/FaceEngine.h> //在案例中的头文件，需要自己动手添加


//地址：E:\Qt_Opencv_Build\5-seetaface2\SeetaFace2\example\search\seeta



class FaceObject : public QObject
{
    Q_OBJECT
public:
    explicit FaceObject(QObject *parent = nullptr);
    ~FaceObject();//析构函数

signals:
    void query_done(const int face_id);//query_face完成之后释放的信号，包含了返回值face_id
    void register_done(const int face_id);

public slots:
    //int query_face(cv::Mat &face_img);/*查询人脸，并返回人脸id*/
    void query_face(cv::Mat &face_img);/*查询人脸，并返回人脸id*/
    int register_face(cv::Mat &face_img);/*注册人脸，并返回人脸id*/
private:
    seeta::FaceEngine *m_eng;

};

#endif // FACEOBJECT_H
